autocmd filetype gn,html,javascript,typescript,typescriptreact,vim,toml,xml,cmake,json,jsonc,css,python setlocal shiftwidth=2
autocmd filetype c setlocal colorcolumn=80

autocmd BufRead,BufNewFile *.mdx setfiletype markdown
autocmd BufRead,BufNewFile *.mjs setfiletype javascript

" 在markdown里不要自动补全`
autocmd FileType markdown let b:coc_pairs_disabled = ['`']
autocmd! User avante.nvim
